import { prop } from "@typegoose/typegoose"

export class IP {

    //IP地址
    @prop()
    public ip: string

    //时间 
    @prop()
    public time: number

    //城市
    @prop()
    public usercity: string

    //子码id
    @prop()
    public subcodeid: string

    //活码id
    @prop()
    public qrcode: string

    //用户id
    @prop()
    public userid: string

    //重复访问次数
    @prop({ default: 0 })
    public sum?: number

    //长按识别状态
    @prop({ default: false })
    public spotstatus?: boolean

    //是否点击
    @prop({ default: false })
    public onClick?: boolean

    _id?: string

}